home *** CD-ROM | disk | FTP | other *** search
/ Together in Jesus: 1st Reconciliation Computer Fun / Together in Jesus - First Reconciliation - Computer Fun.iso / euch5.swf / scripts / frame_3 / DoAction.as
Text File  |  2007-11-18  |  589b  |  31 lines

  1. this.h2_mc.onPress = function()
  2. {
  3.    this.startDrag();
  4. };
  5. this.h2_mc.onRelease = function()
  6. {
  7.    this.stopDrag();
  8.    if(this.hitTest(target2_mc) == true)
  9.    {
  10.       soundCheering1.start();
  11.       gotoAndStop(4);
  12.    }
  13.    else
  14.    {
  15.       soundMournfultrumpet.start();
  16.       h2_mc._y = targetright_mc._y;
  17.       h2_mc._x = targetright_mc._x;
  18.    }
  19. };
  20. this.d2_mc.onPress = function()
  21. {
  22.    this.startDrag();
  23. };
  24. this.d2_mc.onRelease = function()
  25. {
  26.    this.stopDrag();
  27.    soundMournfultrumpet.start();
  28.    d2_mc._y = targetleft_mc._y;
  29.    d2_mc._x = targetleft_mc._x;
  30. };
  31.